#include <iostream>
using namespace std;

int strLength(char[]);

int main()
{
	char str[] = "abdefghijk";

	cout << "strLength(str) = " << strLength(str) << endl;

	system("pause");
	return 0;
}

int strLength(char str[])
{
	if (*str == '\0')
	{
		return 0;
	}
	else
	{
		return 1 + strLength(str + 1);
	}
}